/******************************************************************************
 * @file     aw99703 i2c driver, control backlight of mipi lcd
 * @brief    header file for dpu driver
 ******************************************************************************/

#ifndef _DRV_MIPI_IIC_H_
#define _DRV_MIPI_IIC_H_

#include <stdint.h>
#include "drv_dw_iic.h"


#ifdef __cplusplus
extern "C" {
#endif

#define LCD_TF_IIC_INDEX                1
#define LCD_BL_PWR_IIC_INDEX            2   /* back light and power */

extern dw_iic_handle_t g_handle_tf;
extern dw_iic_handle_t g_handle_bklgt_pwr;

int lcd_i2c_int(void);
int32_t lcd_i2c_write(dw_iic_handle_t handle, uint8_t slave_addr,
    uint16_t reg, uint8_t val);
int32_t lcd_i2c_read(dw_iic_handle_t handle, uint8_t slave_addr,
    uint16_t reg, uint8_t *read_data);

#ifdef __cplusplus
}
#endif

#endif /* _DRV_DPU_H_ */

